package com.navinfo.platform.dataanalysis.range;

import com.google.common.collect.Range;

/**
 * 水温区间
 *
 * @author machi
 * @create 2018/6/21
 */

public enum WaterTempRange {

    /**
     *
     */
    WATER_TEMP_RANGE_50(Range.lessThan(50)),
    WATER_TEMP_RANGE_70(Range.closedOpen(50,70)),
    WATER_TEMP_RANGE_80(Range.closedOpen(70,80)),
    WATER_TEMP_RANGE_85(Range.closedOpen(80,85)),
    WATER_TEMP_RANGE_90(Range.closedOpen(85,90)),
    WATER_TEMP_RANGE_95(Range.closedOpen(90,95)),
    WATER_TEMP_RANGE_100(Range.closedOpen(95,100)),
    WATER_TEMP_RANGE_105(Range.closedOpen(100,105)),
    WATER_TEMP_RANGE_110(Range.closedOpen(105,110)),
    WATER_TEMP_RANGE_115(Range.closedOpen(110,115)),
    WATER_TEMP_RANGE_120(Range.closedOpen(115,120)),
    WATER_TEMP_RANGE_125(Range.closedOpen(120,125)),
    WATER_TEMP_RANGE_130(Range.closedOpen(125,130)),
    WATER_TEMP_RANGE_135(Range.closedOpen(130,135)),
    WATER_TEMP_RANGE_140(Range.closedOpen(135,140)),
    WATER_TEMP_RANGE_145(Range.closedOpen(140,145)),
    WATER_TEMP_RANGE_150(Range.closedOpen(145,150)),
    WATER_TEMP_RANGE_OVER_150(Range.greaterThan(150)),
    WATER_TEMP_RANGE_VALID(Range.closed(0, 200))
    ;

    private Range<Integer> range;

    WaterTempRange(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }
}
